package com.example.business_oa.service;


import com.example.comment_oa.dubbo.SysEmployeeServiceDubbo;
import com.example.comment_oa.dubbo.SysUserDubbo;
import com.example.comment_oa.pojos.SysEmployee;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class SysEmployeeService {
    @DubboReference(version = "1.0.0")
    SysEmployeeServiceDubbo sysEmployeeServiceDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public SysEmployee selectEmpId(int empId){
        return sysEmployeeServiceDubbo.selectEmpId(empId);
    };
}
